package cn.kxx.service.impl;

import cn.kxx.mapper.SysLogServiceMapper;
import cn.kxx.pojo.SysLog;
import cn.kxx.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: Kong Xiang Xiang
 * @Date: 2022/11/9 18:10
 * @DESC:
 */
@Service
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    private SysLogServiceMapper sysLogServiceMapper;
    @Override
    public void save(SysLog sysLog) {
        sysLogServiceMapper.save(sysLog);

    }

    @Override
    public List<SysLog> findAll() {


        List<SysLog> list = sysLogServiceMapper.findAll();
        return list;
    }
}
